package com.jjyu.service.impl;

import com.jjyu.dao.RestaurantMapper;
import com.jjyu.entity.Restaurant;
import com.jjyu.service.RecommendationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecommendationServiceImpl implements RecommendationService {

    @Autowired
    private RestaurantMapper restaurantMapper;

    @Override
    public List<Restaurant> findNearbyRestaurants(double latitude, double longitude, double radius) {
        return restaurantMapper.findRestaurantsByLocation(latitude, longitude, radius);
    }
}
